<?php
/*************************************************************************************
 *
 *	FileName: header_php.php
 *	Desc    : Delete the list created by user
 *	Author  : Seal
 *	Date    : 2010-9-29
 *
 *************************************************************************************/
	
	$listId = intval( GET('lid') );
	
	if( $listId <= 0 )
	{
		echo "invalid list!";
		exit();
	}
	
	$listDAO = GetListDAO();
	$result = $listDAO->DeleteList( $listId, GetLoginUserID(), 5 );
	
	if( $result !== false )	
		echo "删除评论成功！您的贡献值和E币同时被扣除5！";
	else 
		echo "删除评论失败！请稍后再试!";
		
	exit();
	
?>